package com.example.xxpk.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangguihong
 * @since 2025-02-12
 */
@Getter
@Setter
@TableName("sgin_in_rewards")
@ApiModel(value = "SginInRewards对象", description = "")
public class SginInRewards implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("签到奖励id")
    @TableId(value = "sgin_in_rewards_id", type = IdType.AUTO)
    private Integer sginInRewardsId;

    @ApiModelProperty("奖励类型（1新用户签到奖励，2日常签到奖励）")
    private Integer type;

    @ApiModelProperty("奖励类型(1金币,2道具,3宝箱,4超级宝箱,5人物,6飞剑)")
    private Integer rewardType;

    @ApiModelProperty("奖励id，对于道具、人物等需要id，对于钻石、宝箱等可空")
    private Integer rewardId;

    @ApiModelProperty("奖励数量")
    private Integer rewardCount;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("日期")
    @JSONField(serialzeFeatures=SerializerFeature.WriteMapNullValue)
    private LocalDate date;

    @ApiModelProperty("新用户签到第几天，仅奖励类型为新用户签到时有效")
    private Integer newUserDay;

    @ApiModelProperty("签到信息")
    private String information;

}
